<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Class application\core\model\Model | IBOS open source</title>

	<link rel="stylesheet" href="resources/bootstrap.min.css?973e37a8502921d56bc02bb55321f45b072b6f71">
	<link rel="stylesheet" href="resources/style.css?49f43d3208c5d7e33fa16d36107a345bf11cc00d">

</head>

<body>
	<nav id="navigation" class="navbar navbar-default navbar-fixed-top">
		<div class="container-fluid">
			<div class="navbar-header">
				<a href="index.html" class="navbar-brand">IBOS open source</a>
			</div>
			<div class="collapse navbar-collapse">

                <form id="search" class="navbar-form navbar-left" role="search">
                    <input type="hidden" name="cx" value="">
                    <input type="hidden" name="ie" value="UTF-8">
                    <div class="form-group">
                        <input type="text" name="q" class="search-query form-control" placeholder="Search">
					</div>
				</form>

				<ul class="nav navbar-nav">
					<li>
						<a href="namespace-application.core.model.html" title="Summary of application\core\model"><span>Namespace</span></a>
					</li>
					<li class="active">
<span>Class</span>					</li>





				</ul>
			</div>
		</div>
	</nav>

	<div id="left">
	<div id="menu">

		<div id="groups">
				<h3>Namespaces</h3>
			<ul>
					<li class="active">
						<a href="namespace-application.html">
							application<span></span>
						</a>
							<ul>
					<li class="active">
						<a href="namespace-application.core.html">
							core<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.cache.html">
							cache<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.cache.driver.html">
							driver						</a>
							</li>
					<li>
						<a href="namespace-application.core.cache.provider.html">
							provider						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.core.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.core.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.core.engines.html">
							engines<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.engines.local.html">
							local						</a>
							</li>
					<li>
						<a href="namespace-application.core.engines.sae.html">
							sae						</a>
							</li>
								</ul></li>
					<li class="active">
						<a href="namespace-application.core.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.core.modules.html">
							modules						</a>
							</li>
					<li>
						<a href="namespace-application.core.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.core.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.html">
							modules<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.article.html">
							article<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.article.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.calendar.html">
							calendar<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.calendar.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.calendar.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.calendar.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.contact.html">
							contact<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.contact.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.contact.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.contact.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.dashboard.html">
							dashboard<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.dashboard.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.dashboard.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.dashboard.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.department.html">
							department<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.department.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.department.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.department.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.diary.html">
							diary<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.diary.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.email.html">
							email<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.email.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.main.html">
							main<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.main.behaviors.html">
							behaviors						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.message.html">
							message<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.html">
							core<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.core.co.html">
							co						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.wx.html">
							wx<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.core.wx.callback.html">
							callback						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.wx.event.html">
							event						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-application.modules.message.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.mobile.html">
							mobile<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.mobile.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.mobile.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.mobile.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.position.html">
							position<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.position.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.position.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.position.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.recruit.html">
							recruit<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.recruit.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.role.html">
							role<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.role.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.role.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.user.html">
							user<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.user.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.vote.html">
							vote<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.vote.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.weibo.html">
							weibo<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.weibo.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.utils.html">
							utils						</a>
							</li>
								</ul></li></ul></li></ul></li>
			</ul>
		</div>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-application.core.model.Log.html">Log</a></li>
				<li class="active"><a href="class-application.core.model.Model.html">Model</a></li>
				<li><a href="class-application.core.model.Module.html">Module</a></li>
				<li><a href="class-application.core.model.Regular.html">Regular</a></li>
				<li><a href="class-application.core.model.Source.html">Source</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
	<div id="rightInner">
<div id="content" class="class">
	<h1>Class Model</h1>



	<dl class="tree well">
		<dd style="padding-left:0px">
CActiveRecord
			
			
		</dd>
		<dd style="padding-left:30px">
			<img src="resources/inherit.png" alt="Extended by">
<b><span>application\core\model\Model</span></b>			
			
			
		</dd>
	</dl>


	<div>
		<h3>Direct known subclasses</h3>
		<p class="elementList">
			<code><a href="class-application.core.model.Module.html">application\core\model\Module</a></code>, 
			<code><a href="class-application.modules.article.model.Article.html">application\modules\article\model\Article</a></code>, 
			<code><a href="class-application.modules.contact.model.Contact.html">application\modules\contact\model\Contact</a></code>, 
			<code><a href="class-application.modules.dashboard.model.Announcement.html">application\modules\dashboard\model\Announcement</a></code>, 
			<code><a href="class-application.modules.dashboard.model.Approval.html">application\modules\dashboard\model\Approval</a></code>, 
			<code><a href="class-application.modules.dashboard.model.Cache.html">application\modules\dashboard\model\Cache</a></code>, 
			<code><a href="class-application.modules.dashboard.model.Credit.html">application\modules\dashboard\model\Credit</a></code>, 
			<code><a href="class-application.modules.dashboard.model.CreditLog.html">application\modules\dashboard\model\CreditLog</a></code>, 
			<code><a href="class-application.modules.dashboard.model.CreditRule.html">application\modules\dashboard\model\CreditRule</a></code>, 
			<code><a href="class-application.modules.dashboard.model.CreditRuleLog.html">application\modules\dashboard\model\CreditRuleLog</a></code>, 
			<code><a href="class-application.modules.dashboard.model.CreditRuleLogField.html">application\modules\dashboard\model\CreditRuleLogField</a></code>, 
			<code><a href="class-application.modules.dashboard.model.IpBanned.html">application\modules\dashboard\model\IpBanned</a></code>, 
			<code><a href="class-application.modules.article.model.ArticleApproval.html">application\modules\article\model\ArticleApproval</a></code>, 
			<code><a href="class-application.modules.dashboard.model.LoginTemplate.html">application\modules\dashboard\model\LoginTemplate</a></code>, 
			<code><a href="class-application.modules.dashboard.model.Menu.html">application\modules\dashboard\model\Menu</a></code>, 
			<code><a href="class-application.modules.dashboard.model.Nav.html">application\modules\dashboard\model\Nav</a></code>, 
			<code><a href="class-application.modules.dashboard.model.Page.html">application\modules\dashboard\model\Page</a></code>, 
			<code><a href="class-application.modules.dashboard.model.Stamp.html">application\modules\dashboard\model\Stamp</a></code>, 
			<code><a href="class-application.modules.dashboard.model.Syscache.html">application\modules\dashboard\model\Syscache</a></code>, 
			<code><a href="class-application.modules.dashboard.model.Syscode.html">application\modules\dashboard\model\Syscode</a></code>, 
			<code><a href="class-application.modules.department.model.Department.html">application\modules\department\model\Department</a></code>, 
			<code><a href="class-application.modules.department.model.DepartmentRelated.html">application\modules\department\model\DepartmentRelated</a></code>, 
			<code><a href="class-application.modules.diary.model.CalendarRecord.html">application\modules\diary\model\CalendarRecord</a></code>, 
			<code><a href="class-application.modules.article.model.ArticleBack.html">application\modules\article\model\ArticleBack</a></code>, 
			<code><a href="class-application.modules.diary.model.Diary.html">application\modules\diary\model\Diary</a></code>, 
			<code><a href="class-application.modules.diary.model.DiaryAttention.html">application\modules\diary\model\DiaryAttention</a></code>, 
			<code><a href="class-application.modules.diary.model.DiaryRecord.html">application\modules\diary\model\DiaryRecord</a></code>, 
			<code><a href="class-application.modules.diary.model.DiaryShare.html">application\modules\diary\model\DiaryShare</a></code>, 
			<code><a href="class-application.modules.diary.model.DiaryStats.html">application\modules\diary\model\DiaryStats</a></code>, 
			<code><a href="class-application.modules.email.model.Email.html">application\modules\email\model\Email</a></code>, 
			<code><a href="class-application.modules.email.model.EmailBody.html">application\modules\email\model\EmailBody</a></code>, 
			<code><a href="class-application.modules.email.model.EmailFolder.html">application\modules\email\model\EmailFolder</a></code>, 
			<code><a href="class-application.modules.email.model.EmailWeb.html">application\modules\email\model\EmailWeb</a></code>, 
			<code><a href="class-application.modules.main.model.Attachment.html">application\modules\main\model\Attachment</a></code>, 
			<code><a href="class-application.modules.article.model.ArticleCategory.html">application\modules\article\model\ArticleCategory</a></code>, 
			<code><a href="class-application.modules.main.model.AttachmentUnused.html">application\modules\main\model\AttachmentUnused</a></code>, 
			<code><a href="class-application.modules.main.model.Cron.html">application\modules\main\model\Cron</a></code>, 
			<code><a href="class-application.modules.main.model.MenuCommon.html">application\modules\main\model\MenuCommon</a></code>, 
			<code><a href="class-application.modules.main.model.MenuPersonal.html">application\modules\main\model\MenuPersonal</a></code>, 
			<code><a href="class-application.modules.main.model.ModuleGuide.html">application\modules\main\model\ModuleGuide</a></code>, 
			<code><a href="class-application.modules.main.model.Process.html">application\modules\main\model\Process</a></code>, 
			<code><a href="class-application.modules.main.model.Session.html">application\modules\main\model\Session</a></code>, 
			<code><a href="class-application.modules.main.model.Setting.html">application\modules\main\model\Setting</a></code>, 
			<code><a href="class-application.modules.message.model.Atme.html">application\modules\message\model\Atme</a></code>, 
			<code><a href="class-application.modules.message.model.Comment.html">application\modules\message\model\Comment</a></code>, 
			<code><a href="class-application.modules.article.model.ArticlePicture.html">application\modules\article\model\ArticlePicture</a></code>, 
			<code><a href="class-application.modules.message.model.Feed.html">application\modules\message\model\Feed</a></code>, 
			<code><a href="class-application.modules.message.model.FeedData.html">application\modules\message\model\FeedData</a></code>, 
			<code><a href="class-application.modules.message.model.FeedDigg.html">application\modules\message\model\FeedDigg</a></code>, 
			<code><a href="class-application.modules.message.model.Message.html">application\modules\message\model\Message</a></code>, 
			<code><a href="class-application.modules.message.model.MessageContent.html">application\modules\message\model\MessageContent</a></code>, 
			<code><a href="class-application.modules.message.model.MessageList.html">application\modules\message\model\MessageList</a></code>, 
			<code><a href="class-application.modules.message.model.MessageUser.html">application\modules\message\model\MessageUser</a></code>, 
			<code><a href="class-application.modules.message.model.Notify.html">application\modules\message\model\Notify</a></code>, 
			<code><a href="class-application.modules.message.model.NotifyEmail.html">application\modules\message\model\NotifyEmail</a></code>, 
			<code><a href="class-application.modules.message.model.NotifyMessage.html">application\modules\message\model\NotifyMessage</a></code>, 
			<code><a href="class-application.modules.article.model.ArticleReader.html">application\modules\article\model\ArticleReader</a></code>, 
			<code><a href="class-application.modules.message.model.NotifySms.html">application\modules\message\model\NotifySms</a></code>, 
			<code><a href="class-application.modules.message.model.UserData.html">application\modules\message\model\UserData</a></code>, 
			<code><a href="class-application.modules.position.model.Position.html">application\modules\position\model\Position</a></code>, 
			<code><a href="class-application.modules.position.model.PositionCategory.html">application\modules\position\model\PositionCategory</a></code>, 
			<code><a href="class-application.modules.position.model.PositionRelated.html">application\modules\position\model\PositionRelated</a></code>, 
			<code><a href="class-application.modules.position.model.PositionResponsibility.html">application\modules\position\model\PositionResponsibility</a></code>, 
			<code><a href="class-application.modules.recruit.model.Resume.html">application\modules\recruit\model\Resume</a></code>, 
			<code><a href="class-application.modules.recruit.model.ResumeBgchecks.html">application\modules\recruit\model\ResumeBgchecks</a></code>, 
			<code><a href="class-application.modules.recruit.model.ResumeContact.html">application\modules\recruit\model\ResumeContact</a></code>, 
			<code><a href="class-application.modules.recruit.model.ResumeDetail.html">application\modules\recruit\model\ResumeDetail</a></code>, 
			<code><a href="class-application.modules.calendar.model.Calendars.html">application\modules\calendar\model\Calendars</a></code>, 
			<code><a href="class-application.modules.recruit.model.ResumeInterview.html">application\modules\recruit\model\ResumeInterview</a></code>, 
			<code><a href="class-application.modules.recruit.model.ResumeStats.html">application\modules\recruit\model\ResumeStats</a></code>, 
			<code><a href="class-application.modules.role.model.AuthItem.html">application\modules\role\model\AuthItem</a></code>, 
			<code><a href="class-application.modules.role.model.AuthItemChild.html">application\modules\role\model\AuthItemChild</a></code>, 
			<code><a href="class-application.modules.role.model.Node.html">application\modules\role\model\Node</a></code>, 
			<code><a href="class-application.modules.role.model.NodeRelated.html">application\modules\role\model\NodeRelated</a></code>, 
			<code><a href="class-application.modules.role.model.Role.html">application\modules\role\model\Role</a></code>, 
			<code><a href="class-application.modules.role.model.RoleRelated.html">application\modules\role\model\RoleRelated</a></code>, 
			<code><a href="class-application.modules.user.model.BgTemplate.html">application\modules\user\model\BgTemplate</a></code>, 
			<code><a href="class-application.modules.user.model.FailedIp.html">application\modules\user\model\FailedIp</a></code>, 
			<code><a href="class-application.modules.calendar.model.CalendarSetup.html">application\modules\calendar\model\CalendarSetup</a></code>, 
			<code><a href="class-application.modules.user.model.FailedLogin.html">application\modules\user\model\FailedLogin</a></code>, 
			<code><a href="class-application.modules.user.model.OnlineTime.html">application\modules\user\model\OnlineTime</a></code>, 
			<code><a href="class-application.modules.user.model.User.html">application\modules\user\model\User</a></code>, 
			<code><a href="class-application.modules.user.model.UserBinding.html">application\modules\user\model\UserBinding</a></code>, 
			<code><a href="class-application.modules.user.model.UserCount.html">application\modules\user\model\UserCount</a></code>, 
			<code><a href="class-application.modules.user.model.UserGroup.html">application\modules\user\model\UserGroup</a></code>, 
			<code><a href="class-application.modules.user.model.UserProfile.html">application\modules\user\model\UserProfile</a></code>, 
			<code><a href="class-application.modules.user.model.UserStatus.html">application\modules\user\model\UserStatus</a></code>, 
			<code><a href="class-application.modules.vote.model.Vote.html">application\modules\vote\model\Vote</a></code>, 
			<code><a href="class-application.modules.vote.model.VoteItem.html">application\modules\vote\model\VoteItem</a></code>, 
			<code><a href="class-application.modules.calendar.model.Tasks.html">application\modules\calendar\model\Tasks</a></code>, 
			<code><a href="class-application.modules.vote.model.VoteItemCount.html">application\modules\vote\model\VoteItemCount</a></code>, 
			<code><a href="class-application.modules.weibo.model.FeedTopic.html">application\modules\weibo\model\FeedTopic</a></code>, 
			<code><a href="class-application.modules.weibo.model.FeedTopicLink.html">application\modules\weibo\model\FeedTopicLink</a></code>, 
			<code><a href="class-application.modules.weibo.model.Follow.html">application\modules\weibo\model\Follow</a></code>
		</p>
	</div>






	<div class="alert alert-info">
		
		
		<b>Namespace:</b> <a href="namespace-application.html">application</a>\<a href="namespace-application.core.html">core</a>\<a href="namespace-application.core.model.html">model</a><br>
		

				<b>Copyright:</b>
				Copyright &copy; 2012-2014 IBOS Inc<br>
				<b>Author:</b>
				banyanCheung <a href="m&#97;&#105;&#108;&#116;&#111;&#58;&#x62;&#x61;&#x6e;&#x79;&#x61;&#x6e;&#x40;i&#98;&#111;&#115;&#46;&#99;&#111;&#109;&#x2e;&#x63;&#x6e;">&#x62;&#x61;&#x6e;&#x79;&#x61;&#x6e;&#x40;i&#98;&#111;&#115;&#46;&#99;&#111;&#109;&#x2e;&#x63;&#x6e;</a><br>
			<b>Located at</b> system/core/model/Model.php		<br>
	</div>



		<div class="panel panel-default">
			<div class="panel-heading"><h2>Methods summary</h2></div>
			<table class="summary table table-bordered table-striped methods" id="methods">
		<tr data-order="init" id="_init">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_init">#</a>
			<code>init( )</code>

			<div class="description short">
				<p>创建各个model实例后的执行方法，获取缓存设置
如有需要子类可覆盖初始化方法init</p>
			</div>

			<div class="description detailed hidden">
				<p>创建各个model实例后的执行方法，获取缓存设置
如有需要子类可覆盖初始化方法init</p>







			</div>
			</div></td>
		</tr>
		<tr data-order="fetch" id="_fetch">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetch">#</a>
			<code>fetch( <span>mixed <var>$condition</var> = <span class="php-quote">''</span></span>, <span>array <var>$params</var> = <span class="php-keyword1">array</span>() </span> )</code>

			<div class="description short">
				<p>查询一条符合条件的数据，返回数组 不缓存</p>
			</div>

			<div class="description detailed hidden">
				<p>查询一条符合条件的数据，返回数组 不缓存</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$condition</var></dt>
						<dd>条件字符串 || 数组 || criteria对象CDbCriteria</dd>
						<dt><var>$params</var></dt>
						<dd>参数绑定到SQL语句</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchByPk" id="_fetchByPk">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchByPk">#</a>
			<code>fetchByPk( <span> <var>$pk</var></span> )</code>

			<div class="description short">
				<p>如果缓存存在数据，则直接读取缓存。否则根据主键查找一条记录，返回数组格式</p>
			</div>

			<div class="description detailed hidden">
				<p>如果缓存存在数据，则直接读取缓存。否则根据主键查找一条记录，返回数组格式</p>



					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchByAttributes" id="_fetchByAttributes">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchByAttributes">#</a>
			<code>fetchByAttributes( <span>type <var>$attributes</var></span>, <span>type <var>$condition</var> = <span class="php-quote">''</span></span>, <span>type <var>$params</var> = <span class="php-keyword1">array</span>() </span> )</code>

			<div class="description short">
				<p>封装parent::findByAttributes</p>
			</div>

			<div class="description detailed hidden">
				<p>封装parent::findByAttributes</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$attributes</var></dt>
						<dd></dd>
						<dt><var>$condition</var></dt>
						<dd></dd>
						<dt><var>$params</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAll" id="_fetchAll">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAll">#</a>
			<code>fetchAll( <span>mixed <var>$condition</var> = <span class="php-quote">''</span></span>, <span>array <var>$params</var> = <span class="php-keyword1">array</span>() </span> )</code>

			<div class="description short">
				<p>查询所有数据，返回一个数组集合 不缓存</p>
			</div>

			<div class="description detailed hidden">
				<p>查询所有数据，返回一个数组集合 不缓存</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$condition</var></dt>
						<dd>条件字符串 || 数组 || criteria对象CDbCriteria</dd>
						<dt><var>$params</var></dt>
						<dd>参数绑定到SQL语句</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAllByAttributes" id="_fetchAllByAttributes">

			<td class="attributes"><code>
				 public 
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAllByAttributes">#</a>
			<code>fetchAllByAttributes( <span>type <var>$attributes</var></span>, <span>string <var>$condition</var> = <span class="php-quote">''</span></span>, <span>array <var>$params</var> = <span class="php-keyword1">array</span>() </span> )</code>

			<div class="description short">
				<p>封装parent::findAllByAttributes</p>
			</div>

			<div class="description detailed hidden">
				<p>封装parent::findAllByAttributes</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$attributes</var></dt>
						<dd></dd>
						<dt><var>$condition</var></dt>
						<dd></dd>
						<dt><var>$params</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAllSortByPk" id="_fetchAllSortByPk">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAllSortByPk">#</a>
			<code>fetchAllSortByPk( <span>string <var>$pk</var></span>, <span>mixed <var>$condition</var> = <span class="php-quote">''</span></span>, <span>array <var>$params</var> = <span class="php-keyword1">array</span>() </span> )</code>

			<div class="description short">
				<p>顾名思义，返回已主键为索引的数组</p>
			</div>

			<div class="description detailed hidden">
				<p>顾名思义，返回已主键为索引的数组</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$pk</var></dt>
						<dd></dd>
						<dt><var>$condition</var></dt>
						<dd>条件字符串 || 数组 || criteria对象CDbCriteria</dd>
						<dt><var>$params</var></dt>
						<dd>参数绑定到SQL语句</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchAllByPk" id="_fetchAllByPk">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchAllByPk">#</a>
			<code>fetchAllByPk( <span>array <var>$pks</var></span> )</code>

			<div class="description short">
				<p>如果缓存存在数据，则直接读取缓存。否则根据主键查找指定pks记录，返回数组格式</p>
			</div>

			<div class="description detailed hidden">
				<p>如果缓存存在数据，则直接读取缓存。否则根据主键查找指定pks记录，返回数组格式</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$pks</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="add" id="_add">

			<td class="attributes"><code>
				 public 
				mixed
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_add">#</a>
			<code>add( <span>array <var>$attributes</var></span>, <span>boolean <var>$returnNewId</var> = <span class="php-keyword1">false</span></span>, <span>boolean <var>$replace</var> = <span class="php-keyword1">false</span> </span> )</code>

			<div class="description short">
				<p>增加一条记录。封装自AR::insert方法。</p>
			</div>

			<div class="description detailed hidden">
				<p>增加一条记录。封装自AR::insert方法。</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$attributes</var></dt>
						<dd>要插入的数据</dd>
						<dt><var>$returnNewId</var></dt>
						<dd>是否返回插入的ID</dd>
						<dt><var>$replace</var></dt>
						<dd>是否替换插入</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						mixed<br>返回插入的id或者插入成功与否
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="modify" id="_modify">

			<td class="attributes"><code>
				 public 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_modify">#</a>
			<code>modify( <span>mixed <var>$pk</var></span>, <span>array <var>$attributes</var></span> )</code>

			<div class="description short">
				<p>根据主键id更新记录。封装AR updateByPk方法，使之调用beforeSave方法</p>
			</div>

			<div class="description detailed hidden">
				<p>根据主键id更新记录。封装AR updateByPk方法，使之调用beforeSave方法</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$pk</var></dt>
						<dd>主键</dd>
						<dt><var>$attributes</var></dt>
						<dd>更新的值</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean<br>成功与否
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="remove" id="_remove">

			<td class="attributes"><code>
				 public 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_remove">#</a>
			<code>remove( <span>mixed <var>$pk</var></span> )</code>

			<div class="description short">
				<p>删除单条记录。封装AR delete方法，使之调用beforeDelete方法</p>
			</div>

			<div class="description detailed hidden">
				<p>删除单条记录。封装AR delete方法，使之调用beforeDelete方法</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$pk</var></dt>
						<dd>主键</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean<br>成功与否
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getIsAllowCache" id="_getIsAllowCache">

			<td class="attributes"><code>
				 public 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getIsAllowCache">#</a>
			<code>getIsAllowCache( )</code>

			<div class="description short">
				<p>检测缓存是否可用的简单封装方法</p>
			</div>

			<div class="description detailed hidden">
				<p>检测缓存是否可用的简单封装方法</p>



					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getMaxId" id="_getMaxId">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getMaxId">#</a>
			<code>getMaxId( <span><code><a href="class-application.core.utils.String.html">application\core\utils\String</a></code> <var>$pk</var> = <span class="php-quote">'id'</span> </span> )</code>

			<div class="description short">
				<p>获取指定数据表最大的主键id</p>
			</div>

			<div class="description detailed hidden">
				<p>获取指定数据表最大的主键id</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$pk</var></dt>
						<dd>数据模板表主键 默认为id</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="updateByPk" id="_updateByPk">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_updateByPk">#</a>
			<code>updateByPk( <span> <var>$pk</var></span>, <span> <var>$attributes</var></span>, <span> <var>$condition</var> = <span class="php-quote">''</span></span>, <span> <var>$params</var> = <span class="php-keyword1">array</span>() </span> )</code>

			<div class="description short">
				<p>覆盖此方法实现各model的afterSave</p>
			</div>

			<div class="description detailed hidden">
				<p>覆盖此方法实现各model的afterSave</p>





					<h4>See</h4>
					<div class="list">
							parent::updateByPk<br>
					</div>


			</div>
			</div></td>
		</tr>
		<tr data-order="updateAll" id="_updateAll">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_updateAll">#</a>
			<code>updateAll( <span> <var>$attributes</var></span>, <span> <var>$condition</var> = <span class="php-quote">''</span></span>, <span> <var>$params</var> = <span class="php-keyword1">array</span>() </span> )</code>

			<div class="description short">
				<p>覆盖此方法实现各model的afterSave</p>
			</div>

			<div class="description detailed hidden">
				<p>覆盖此方法实现各model的afterSave</p>





					<h4>See</h4>
					<div class="list">
							parent::updateAll<br>
					</div>


			</div>
			</div></td>
		</tr>
		<tr data-order="deleteByPk" id="_deleteByPk">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_deleteByPk">#</a>
			<code>deleteByPk( <span>mixed <var>$pk</var></span>, <span>mixed <var>$condition</var> = <span class="php-quote">''</span></span>, <span>array <var>$params</var> = <span class="php-keyword1">array</span>() </span> )</code>

			<div class="description short">
				<p>实现批量删除缓存</p>
			</div>

			<div class="description detailed hidden">
				<p>实现批量删除缓存</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$pk</var></dt>
						<dd></dd>
						<dt><var>$condition</var></dt>
						<dd></dd>
						<dt><var>$params</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="create" id="_create">

			<td class="attributes"><code>
				 public 
				mixed
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_create">#</a>
			<code>create( <span>mixed <var>$data</var> = <span class="php-quote">''</span> </span>, <span>string <var>$type</var>,…</span> )</code>

			<div class="description short">
				<p>创建数据对象 但不保存到数据库</p>
			</div>

			<div class="description detailed hidden">
				<p>创建数据对象 但不保存到数据库</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$data</var></dt>
						<dd>创建数据</dd>
						<dt><var>$type</var>,…</dt>
						<dd>状态</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						mixed
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="beforeDelete" id="_beforeDelete">

			<td class="attributes"><code>
				 protected 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_beforeDelete">#</a>
			<code>beforeDelete( )</code>

			<div class="description short">
				<p>删除前调用方法，增加缓存处理
子类覆盖时应调用此方法确保父类实现</p>
			</div>

			<div class="description detailed hidden">
				<p>删除前调用方法，增加缓存处理
子类覆盖时应调用此方法确保父类实现</p>



					<h4>Returns</h4>
					<div class="list">
						boolean<br>方法调用成功
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchCache" id="_fetchCache">

			<td class="attributes"><code>
				 protected 
				mixed
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchCache">#</a>
			<code>fetchCache( <span>mixed <var>$pk</var></span> )</code>

			<div class="description short">
				<p>获取数据缓存</p>
			</div>

			<div class="description detailed hidden">
				<p>获取数据缓存</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$pk</var></dt>
						<dd>主键</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						mixed<br>false : 无缓存数据,其他为缓存数据
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchCaches" id="_fetchCaches">

			<td class="attributes"><code>
				 protected 
				mixed
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchCaches">#</a>
			<code>fetchCaches( <span>array <var>$pks</var></span> )</code>

			<div class="description short">
				<p>批量获取数据缓存，特别处理以适应fetchAllByPk函数</p>
			</div>

			<div class="description detailed hidden">
				<p>批量获取数据缓存，特别处理以适应fetchAllByPk函数</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$pks</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						mixed<br>array - the results.false - if the result not found
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getModelClass" id="_getModelClass">

			<td class="attributes"><code>
				 protected 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getModelClass">#</a>
			<code>getModelClass( )</code>

			<div class="description short">
				<p>获得继承Model的类名</p>
			</div>

			<div class="description detailed hidden">
				<p>获得继承Model的类名</p>



					<h4>Returns</h4>
					<div class="list">
						string<br>子类类名
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getCacheKey" id="_getCacheKey">

			<td class="attributes"><code>
				 protected 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getCacheKey">#</a>
			<code>getCacheKey( <span>mixed <var>$pk</var> = <span class="php-quote">''</span> </span> )</code>

			<div class="description short">
				<p>获取缓存键值</p>
			</div>

			<div class="description detailed hidden">
				<p>获取缓存键值</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$pk</var></dt>
						<dd>主键</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string<br>处理后的缓存key
					</div>




			</div>
			</div></td>
		</tr>
			</table>
		</div>











		<div class="panel panel-default">
            <div class="panel-heading"><h2>Properties summary</h2></div>
			<table class="summary table table-bordered table-striped properties" id="properties">
		<tr data-order="allowCache" id="$allowCache">
			<td class="attributes"><code>
				protected  
				mixed
			</code></td>

			<td class="name">
<var>$allowCache</var>
				<div class="description short">
					<p>是否允许缓存</p>
				</div>

				<div class="description detailed hidden">
					<p>是否允许缓存</p>

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$allowCache" class="anchor">#</a>
					<code></code>
				</div>
			</td>
		</tr>
		<tr data-order="cacheLife" id="$cacheLife">
			<td class="attributes"><code>
				protected  
				mixed
			</code></td>

			<td class="name">
<var>$cacheLife</var>
				<div class="description short">
					<p>缓存生命周期</p>
				</div>

				<div class="description detailed hidden">
					<p>缓存生命周期</p>

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$cacheLife" class="anchor">#</a>
					<code><span class="php-keyword1">null</span></code>
				</div>
			</td>
		</tr>
			</table>
		</div>






</div>
	</div>

	<div id="footer">
		IBOS open source API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
